/*
 * @Author: Crism
 * @Date: 2018-11-01 10:27:49
 * @LastEditors: Crism
 * @LastEditTime: 2019-01-28 14:18:38
 * @Email: crism@qq.com
 * @Description: 
 */

const pkg = require('./package.json');
/** ServerConfig */
const config = {
    debug: false,
    host: '127.0.0.1',
    port: 8088,
    name: 'SEE_MOVIE',
    version: pkg.version,
}
/** Filelog */
const fs = require('fs');
const errorLogfile = fs.createWriteStream(__dirname + '/logs/error.log', { flags: 'a', encoding: null, mode: 0777 });
/** MysqlClient */
const db_config = require('./config/db_config');
const DB = require('./libs/DB');
const db_movie = new DB(db_config.db_movie_config);

module.exports.config = config;
module.exports.db_movie = db_movie;
module.exports.errorLogfile = errorLogfile;

